<?php
if (isset($_COOKIE["userType"]))
{
    if($_COOKIE['userType'] == administrator)
    {
      echo"'<script>document.location.href='main.php'</script>'";
    }
    else
    {
      echo"'<script>document.location.href='mainsad.php'</script>'";
    }
}
else
{

}
?>

<!doctype html public "-//W3C//DTD HTML 4.01//EN">
<html>
   <head>
      <title>La Union Online Library System</title>
      <meta http-equiv="generator" content="PHP Designer 2005" />
      <style type="text/css">
        @import url(style.css);
      </style>
   </head>

   <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
   
    <form action='verify.php' method='post'>
    <table border='0' width='80%' height='100%' align='center' class='content'>
        <tr>
            <td colspan='3'><img src='images/banner.jpg'></td>
        </tr>
        <tr><td height='30'></td></tr>
        <tr>
            <td>
            <table align='center' width='50%'>
            <tr><td width='40%' cellpadding='10' background='images/key.png' align='center'><b>Welcome to LOLS!<br /><br /> Enter a valid user name and password to gain access to the system.</b></td>
            <td width='60%'>
            <table align='center' width='100%'>
                <tr><td height='50' class='title'><img src='images/log.png'></td></tr>
                <tr><td height='15'></td></tr>
                <tr><td>&nbsp;&nbsp;&nbsp;User Name</td></tr>
                <tr><td>&nbsp;&nbsp;&nbsp;<input type='text' size='25' name='userName'></td></tr>
                <tr><td height='15'></td></tr>
                <tr><td>&nbsp;&nbsp;&nbsp;Password</td></tr>
                <tr><td>&nbsp;&nbsp;&nbsp;<input type='password' size='25' name='password'></td></tr>
                <tr><td height='15'></td></tr>
                <tr><td align='center'><input type='submit' name='log' value='Login' class='tool'></td></tr>
                <tr><td height='15'></td></tr>
            </table></td></tr>
            </table>
            </td>
        </tr>
        <tr><td height='20'></td></tr>
        <tr><td align='center' colspan='2'><?php require ('copyright.php')?></td></tr>
    </table>
    </form>
    
    
    </body>
</html>
<?php
    require('expire.php');
?>

